/**
 * 
 */
package com.google.code.sip.ucenter.ws.dto;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;

import com.google.code.morphia.annotations.Indexed;

/**
 * @author Liuye
 * 
 */
@XmlRootElement(name = "credit")
@XmlSeeAlso(BaseDto.class)
@XmlAccessorType(XmlAccessType.FIELD)
@SuppressWarnings("serial")
public class CreditDto extends BaseDto {
	/**
	 * 用户id
	 */
	private String userId;

	/**
	 * 积分类型
	 */
	@Indexed
	private String creditTypeId;

	/**
	 * 积分值
	 */
	private int amount;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getCreditTypeId() {
		return creditTypeId;
	}

	public void setCreditTypeId(String creditTypeId) {
		this.creditTypeId = creditTypeId;
	}

	public int getAmount() {
		return amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}
}
